package com.yinhe.springboot_demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

//扫描mapper接口
// @MapperScan(basePackages = "com.yinhe.dao")
//扫码所有的项目包，主要是controller，防止url映射不到controller
@SpringBootApplication(scanBasePackages="com.yinhe.*")
@EnableAsync //启动异步支持
@EnableScheduling //启用定时任务支持
public class SpringbootDemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringbootDemoApplication.class, args);
    }

}
